<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{mmItemBean.id}"/>
		<f:event type="preRenderView" listener="#{mmItemBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Mm Item"/>

	<ui:define name="header">
		Mm Item
	</ui:define>

	<ui:define name="subheader">
		View existing Mm Item
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="mmItemBeanMmItemItemNo" value="Item No:"/>
			<h:outputText id="mmItemBeanMmItemItemNo" value="#{mmItemBean.mmItem.itemNo}"/>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemMmItemGroup" value="Mm Item Group:"/>
			<h:link id="mmItemBeanMmItemMmItemGroup" outcome="/mmItemGroup/view" value="#{mmItemBean.mmItem.mmItemGroup}">
				<f:param name="id" value="#{mmItemBean.mmItem.mmItemGroup.itemGroupNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemMmItemType" value="Mm Item Type:"/>
			<h:link id="mmItemBeanMmItemMmItemType" outcome="/mmItemType/view" value="#{mmItemBean.mmItem.mmItemType}">
				<f:param name="id" value="#{mmItemBean.mmItem.mmItemType.itemTypeNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemMmItemColor" value="Mm Item Color:"/>
			<h:link id="mmItemBeanMmItemMmItemColor" outcome="/mmItemColor/view" value="#{mmItemBean.mmItem.mmItemColor}">
				<f:param name="id" value="#{mmItemBean.mmItem.mmItemColor.itemColorNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemItemCode" value="Item Code:"/>
			<h:outputText id="mmItemBeanMmItemItemCode" value="#{mmItemBean.mmItem.itemCode}"/>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemItemModelCode" value="Item Model Code:"/>
			<h:outputText id="mmItemBeanMmItemItemModelCode" value="#{mmItemBean.mmItem.itemModelCode}"/>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemItemDescr" value="Item Descr:"/>
			<h:outputText id="mmItemBeanMmItemItemDescr" value="#{mmItemBean.mmItem.itemDescr}"/>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemItemStatusIsActive" value="Item Status Is Active:"/>
			<h:outputText id="mmItemBeanMmItemItemStatusIsActive" value="#{mmItemBean.mmItem.itemStatusIsActive}"/>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemItemEffectiveDate" value="Item Effective Date:"/>
			<h:outputText id="mmItemBeanMmItemItemEffectiveDate" value="#{mmItemBean.mmItem.itemEffectiveDate}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemItemExpireDate" value="Item Expire Date:"/>
			<h:outputText id="mmItemBeanMmItemItemExpireDate" value="#{mmItemBean.mmItem.itemExpireDate}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemItemBalQty" value="Item Bal Qty:"/>
			<h:outputText id="mmItemBeanMmItemItemBalQty" value="#{mmItemBean.mmItem.itemBalQty}"/>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemItemPrice" value="Item Price:"/>
			<h:outputText id="mmItemBeanMmItemItemPrice" value="#{mmItemBean.mmItem.itemPrice}"/>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemItemStatusIsPromotion" value="Item Status Is Promotion:"/>
			<h:outputText id="mmItemBeanMmItemItemStatusIsPromotion" value="#{mmItemBean.mmItem.itemStatusIsPromotion}"/>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemItemCreatedDtm" value="Item Created Dtm:"/>
			<h:outputText id="mmItemBeanMmItemItemCreatedDtm" value="#{mmItemBean.mmItem.itemCreatedDtm}">
				<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemPcPurchaseReceiptItems" value="Pc Purchase Receipt Items:"/>
			<h:dataTable id="mmItemBeanMmItemPcPurchaseReceiptItems" styleClass="data-table" value="#{forgeview:asList(mmItemBean.mmItem.pcPurchaseReceiptItems)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rcpt Qty"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReceiptItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemRcptQty" value="#{_item.rcptQty}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rcpt Ppu"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReceiptItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemRcptPpu" value="#{_item.rcptPpu}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rcpt Vat Perc Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReceiptItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemRcptVatPercVal" value="#{_item.rcptVatPercVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rcpt Vat Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReceiptItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemRcptVatVal" value="#{_item.rcptVatVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rcpt Total Price Exc Vat"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReceiptItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemRcptTotalPriceExcVat" value="#{_item.rcptTotalPriceExcVat}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemMmItemImages" value="Mm Item Images:"/>
			<h:dataTable id="mmItemBeanMmItemMmItemImages" styleClass="data-table" value="#{forgeview:asList(mmItemBean.mmItem.mmItemImages)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Item Image Name"/>
					</f:facet>
					<h:link outcome="/mmItemImage/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemItemImageName" value="#{_item.itemImageName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Item Image Descr"/>
					</f:facet>
					<h:link outcome="/mmItemImage/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemItemImageDescr" value="#{_item.itemImageDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Item Image File Name"/>
					</f:facet>
					<h:link outcome="/mmItemImage/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemItemImageFileName" value="#{_item.itemImageFileName}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemPcPurchaseOrderItems" value="Pc Purchase Order Items:"/>
			<h:dataTable id="mmItemBeanMmItemPcPurchaseOrderItems" styleClass="data-table" value="#{forgeview:asList(mmItemBean.mmItem.pcPurchaseOrderItems)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Qty"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoQty" value="#{_item.poQty}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Ppu"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoPpu" value="#{_item.poPpu}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Status Inc Vat"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoStatusIncVat" value="#{_item.poStatusIncVat}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Vat Perc Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoVatPercVal" value="#{_item.poVatPercVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Vat Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoVatVal" value="#{_item.poVatVal}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemPcPurchaseReqItems" value="Pc Purchase Req Items:"/>
			<h:dataTable id="mmItemBeanMmItemPcPurchaseReqItems" styleClass="data-table" value="#{forgeview:asList(mmItemBean.mmItem.pcPurchaseReqItems)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Qty"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReqItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPrQty" value="#{_item.prQty}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Ppu"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReqItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPrPpu" value="#{_item.prPpu}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Status Inc Vat"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReqItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPrStatusIncVat" value="#{_item.prStatusIncVat}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Vat Perc Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReqItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPrVatPercVal" value="#{_item.prVatPercVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Pr Vat Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReqItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPrVatVal" value="#{_item.prVatVal}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemMmItemPriceCustGroups" value="Mm Item Price Cust Groups:"/>
			<h:dataTable id="mmItemBeanMmItemMmItemPriceCustGroups" styleClass="data-table" value="#{forgeview:asList(mmItemBean.mmItem.mmItemPriceCustGroups)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Item Price"/>
					</f:facet>
					<h:link outcome="/mmItemPriceCustGroup/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemItemPrice" value="#{_item.itemPrice}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemSdQuotationItems" value="Sd Quotation Items:"/>
			<h:dataTable id="mmItemBeanMmItemSdQuotationItems" styleClass="data-table" value="#{forgeview:asList(mmItemBean.mmItem.sdQuotationItems)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Qty"/>
					</f:facet>
					<h:link outcome="/sdQuotationItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtQty" value="#{_item.qtQty}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Ppu"/>
					</f:facet>
					<h:link outcome="/sdQuotationItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtPpu" value="#{_item.qtPpu}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Status Inc Vat"/>
					</f:facet>
					<h:link outcome="/sdQuotationItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtStatusIncVat" value="#{_item.qtStatusIncVat}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Vat Perc Val"/>
					</f:facet>
					<h:link outcome="/sdQuotationItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtVatPercVal" value="#{_item.qtVatPercVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Qt Vat"/>
					</f:facet>
					<h:link outcome="/sdQuotationItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemQtVat" value="#{_item.qtVat}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="mmItemBeanMmItemSdSaleOrderItems" value="Sd Sale Order Items:"/>
			<h:dataTable id="mmItemBeanMmItemSdSaleOrderItems" styleClass="data-table" value="#{forgeview:asList(mmItemBean.mmItem.sdSaleOrderItems)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Qty"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoQty" value="#{_item.soQty}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Ppu"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoPpu" value="#{_item.soPpu}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Status Inc Vat"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoStatusIncVat" value="#{_item.soStatusIncVat}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Vat Perc Val"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoVatPercVal" value="#{_item.soVatPercVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="So Vat"/>
					</f:facet>
					<h:link outcome="/sdSaleOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemSoVat" value="#{_item.soVat}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>